<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:"老王"
        }
        let obj2 = {
            sex:"男",
            age:19
        }

        // 静态方法
        // let bool = Object.is(obj,obj2);
        // console.log(bool);
        // NaN
        // console.log(NaN === NaN);

        // isNaN 判断是NaN
        // console.log(isNaN(123));
        // console.log(isNaN(NaN));

        // ES6 Object.is()
        // console.log(Object.is(NaN,NaN));

        // 合并对象
        // let obj3 = Object.assign(obj,obj2);
        // console.log(obj3);

        // Object.keys() 获取对象中的属性名 - 返回一个数组
        // let arr = Object.keys(obj3);
        // console.log(arr);

        // Object.values() 获取对象的属性值 -返回一个数组
        // let arr2 = Object.values(obj3);
        // console.log(arr2);

    

    </script>
</body>
</html>